<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body {
      background-color: #242223;
    }

    
    img {
      width: 100%;
      margin-bottom: 1em;

      /* flex布局修复 */
      /* max-width: 300px;
      object-fit: cover; */
    }

    /* Grid布局 */
    /* .layout-container {
      display: grid;
      grid-template-columns: repeat(3,1fr);
    } */

    /* Flex布局 */
    /* 图片强行被拉伸 */
    /* .layout-container {
      display: flex;
      flex-wrap: wrap;
    } */

    /* 砌体布局 */
    .layout-container { 
      /* column-count: 3; */
      columns: 300px;
    } 

    /* grid */
    body {
      background-color: #242223;
    }


    /* 媒体查询修复响应式 */
    /* @media screen and (max-width: 600px) {
      .layout-container {
        column-count: 2;
      }
    } */
  </style>
</head>

<body>
  <div class="layout-container">
    <img src="../assets/1.jpg">
    <img src="../assets/2.jpg">
    <img src="../assets/3.jpg">
    <img src="../assets/4.jpg">
    <img src="../assets/5.jpg">
    <img src="../assets/6.jpg">
    <img src="../assets/7.jpg">
    <img src="../assets/8.jpg">
    <img src="../assets/9.jpg">
    <img src="../assets/10.jpg">
  </div>
</body>

</html>